#include "orthographic.h"

using MathGraphics::Ray;
using MathGraphics::Point;
using MathGraphics::Vector;

namespace CameraInterface
{
	Ray OrthoCamera::spawnRay(int posX, int posY)
	{
		Point  o = rasterToCamera(Point(posX, posY, 0.0));
		Vector d = Vector(0.0, 0.0, 1.0); 

		Ray r = Ray(o, d);

		return cameraToWorld(r);
	}
}